package model.sales;
// Generated Feb 14, 2013 10:33:00 PM by Hibernate Tools 3.2.1.GA


import java.math.BigDecimal;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * TrsSalesPromo generated by hbm2java
 */
@Entity
@Table(name="trs_sales_promo", schema="sales")
public class SalesPromo  implements java.io.Serializable {

     private SalesPromoId id;
     private SalesMst salesMst;
     private Integer hadiahId;
     private BigDecimal nilai;

    public SalesPromo() {
    }
	
    @EmbeddedId
    @AttributeOverrides( {
        @AttributeOverride(name="id", column=@Column(name="id", nullable=false) ), 
        @AttributeOverride(name="seq", column=@Column(name="seq", nullable=false) ) } )
    public SalesPromoId getId() {
        return this.id;
    }
    
    public void setId(SalesPromoId id) {
        this.id = id;
    }
    
    @ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="id", nullable=false, insertable=false, updatable=false)
    public SalesMst getSalesMst() {
        return this.salesMst;
    }
    
    public void setSalesMst(SalesMst salesMst) {
        this.salesMst = salesMst;
    }
    
    @Column(name="hadiah_id")
    public Integer getHadiahId() {
        return this.hadiahId;
    }
    
    public void setHadiahId(Integer hadiahId) {
        this.hadiahId = hadiahId;
    }
    
    @Column(name="nilai", precision=13)
    public BigDecimal getNilai() {
        return this.nilai;
    }
    
    public void setNilai(BigDecimal nilai) {
        this.nilai = nilai;
    }




}


